package com.hyfd.controller.mp;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hyfd.controller.sys.BaseController;
import com.hyfd.service.mp.BillDiscountModelDetailSer;


@Controller
//@Scope("prototype") //开启非单例模式 用于并发控制
public class BillDiscountModelDetailCtl extends BaseController{
	
	@Autowired
	private BillDiscountModelDetailSer billDiscountModelDetailSer;
	
	/**
	 * 查询折扣详情 使用get方式提交
	 * @param req
	 * @return
	 */
	@GetMapping("billDiscountModelDetail/{id}")
	@ResponseBody
	public String billDiscountModelDetailGet(@PathVariable("id")String id, HttpServletRequest req){
		return billDiscountModelDetailSer.getBillDiscountModelDetail(req,id);
	}
}
